<template>
  <el-form :model="ruleForm"
           class="elForm">
    <!--交强险信息-->
    <el-card class="box-card" shadow="never">

      <div slot="header" class="header-card">
        <span class="header-card-title">交强险信息</span>
      </div>

      <el-row :gutter="24">
        <el-col :span="8">
          <el-form-item label="交强险公司:">
            <span>{{ ruleForm.insuranceVo.jqxCompany }}</span>
          </el-form-item>
        </el-col>
        <el-col :span="8">
          <el-form-item label="交强险公司编码:">
            <span>{{ ruleForm.insuranceVo.jqxCompanyCode }}</span>
          </el-form-item>
        </el-col>
        <el-col :span="8">
          <el-form-item label="交强险保单号:">
            <span >{{ ruleForm.insuranceVo.jqxPolicyCode }}</span>
          </el-form-item>
        </el-col>
      </el-row>
      <el-row :gutter="24">
        <el-col :span="8">
          <el-form-item label="交强险性质:">
            <span v-if="ruleForm.insuranceVo.jqxInsuranceType == '1'">运营</span>
            <span v-if="ruleForm.insuranceVo.jqxInsuranceType == '2'">非运营</span>
          </el-form-item>
        </el-col>
        <el-col :span="8">
          <el-form-item label="交强险保费:">
            <span>{{ format_thousand(ruleForm.insuranceVo.jqxAmount) }}</span>
          </el-form-item>
        </el-col>
        <el-col :span="8">
          <el-form-item label="车船税是否缴纳:">
            <span v-if="ruleForm.insuranceVo.carTaxStatus == '1'">是</span>
            <span v-if="ruleForm.insuranceVo.carTaxStatus == '2'">否</span>
          </el-form-item>
        </el-col>
      </el-row>
      <el-row :gutter="24">
        <el-col :span="8">
          <el-form-item label="车船税:">
            <span >{{ format_thousand(ruleForm.insuranceVo.carTax) }}</span>
          </el-form-item>
        </el-col>
<!--        <el-col :span="8">-->
<!--          <el-form-item label="付款时间:">-->
<!--            <span>{{ ruleForm.insuranceVo.jqxExpectBeginTime }}</span>-->
<!--          </el-form-item>-->
<!--        </el-col>-->
        <el-col :span="8">
          <el-form-item label="交强险起保日:">
            <span>{{ ruleForm.insuranceVo.jqxActualBeginTime }}</span>
          </el-form-item>
        </el-col>
        <el-col :span="8">
          <el-form-item label="交强险到期日:">
            <span>{{ ruleForm.insuranceVo.jqxActualEndTime }}</span>
          </el-form-item>
        </el-col>
      </el-row>

      <el-row :gutter="24" style="padding-top:16px ">
        <el-col>
          <el-form-item label="交强险保单:">
            <image-common v-model="ruleForm.insuranceVo.jqxPolicyUrl" :disabled="true" :upType="2"/>
          </el-form-item>
        </el-col>
      </el-row>
    </el-card>
  </el-form>
</template>

<script>
export default {
  name: "compulsoryTrafficTnsurance", //
  dicts: ["insurance_channels"],
  props: {
    value: {
      type: Object,
      default: {},
    },
    state: {
      type: String,
      default: "",
    },
  },
  components: {},

  computed: {
    ruleForm: {
      get() {
        let that = this;
        const proxy = new Proxy(that.value, {
          get(target, key) {
            return Reflect.get(target, key);
          },
          set(target, key, value) {
            that.$emit("input", {...target, [key]: value});
            return true;
          },
        });
        return proxy;
      },
    },
  },

  watch: {},
  data() {
    return {
      optionsData: [],
      obj: {},
    };
  },
};
</script>

<style lang="scss" scoped>
@import "@/styles/cwgd/formScss.scss";
</style>


